package com.atguigu.gmall.common.constant;

import java.util.concurrent.TimeUnit;

/**
 * @author:ahang
 * @create:2022-10-17 23:23
 * @Description:
 */
public class RedisConst {
    public static final String SKU_DETAIL_CACHE_PREFIX = "sku:info:";
    public static final String TEMP_DATA = "X";
    public static final String LOCK_PREFIX = "lock-";


    public static final long TEMP_DATA_TTL = 1L;
    public static final TimeUnit TEMP_DATA_TTL_UNIT = TimeUnit.HOURS;
    public static final String USER_LOGIN = "user:login:";
    public static final String User_ID_HEADER = "userId";
    public static final String User_TEMP_ID_HEADER = "usertempid";
    public static final String CART_INFO = "cart:info";
    public static final Integer CART_ITEM_LENGTH = 500;
    public static final Long CART_SIZE = 200L;
    public static final long CART_TEMP_TTL = 365L;
    public static final String ORDER_TOKEN = "order:token";
    public static final long ORDER_TTL = 30 * 60 * 1000;
    public static final String MQ_RETRY = "mq:retrycount:";
}
